package cn.edu.cug.cs.gtl.docsrv.doc.service;

import cn.edu.cug.cs.gtl.mybatis.mapper.doc.DocAll;
import cn.edu.cug.cs.gtl.mybatis.mapper.doc.DocItem;
import cn.edu.cug.cs.gtl.protos.TimeValue;
import jj2000.j2k.entropy.encoder.EBCOTRateAllocator;

import javax.print.Doc;
import javax.print.attribute.DocAttribute;
import javax.servlet.http.HttpServletResponse;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;

public interface DocService {
    List<DocAll> getDocData() throws Exception;

    boolean addDocData(DocAll docAll) throws Exception;

    boolean deleteDocData(BigDecimal docInternalId) throws Exception;

    boolean updateDocData(DocAll docAll) throws Exception;

    List<DocAll> singleQuery(String column, String value)throws Exception;

    List<DocAll> dateQuery(TimeValue begin, TimeValue end) throws Exception;

    void downloadDocFile(BigDecimal docInternalId, HttpServletResponse response) throws Exception;
}
